﻿@model IEnumerable<Web.Domain.Entities.AdminNav>
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
    <link href="~/Content/css/style.css" rel="stylesheet" type="text/css" />
    <script src="~/Scripts/jquery-1.7.1.js" type="text/javascript"></script>
    <script src="~/Scripts/simpla.jquery.configuration.js" type="text/javascript"></script>
</head>
<body id="main">
    <div id="body-wrapper">
        <!-- Wrapper for the radial gradient background -->
        <div id="sidebar">
            <div id="sidebar-wrapper">
                <!-- Sidebar with logo and menu -->
                <h1 id="sidebar-title">
                    <a href="#">Simpla Admin</a></h1>
                <!-- Logo (221px wide) -->
                <a href="http://www.865171.cn">
                    <img id="logo" src="~/Content/images/logo.png" alt="Simpla Admin logo" /></a>
                <!-- Sidebar Profile links -->
                <div id="profile-links">
                    Hello, <a href="#" title="Edit your profile">admin</a>, 你有 <a href="#messages" rel="modal"
                        title="3 Messages">3 信息未读</a><br />
                    <br />
                    <a href="#" title="View the Site">网站首页</a> | <a href="#" title="Sign Out">退出</a>
                </div>
                <ul id="main-nav">
                    @foreach (var vo in Model)
                    {
                        if (vo.pid == 0 && vo.able != 0)
                        {
                        <li><a href="#" class="nav-top-item">@vo.title </a>
                            <ul>
                                <li>
                                    @foreach (var wo in Model)
                                    {
                                        if (wo.pid == vo.id && wo.able != 0)
                                        {
                                        <a href="@Url.RouteUrl(new { Controller = wo.c, action = wo.a })" target="mainFrame">@wo.title
                                        </a>
                                        }
                                    }
                                </li>
                            </ul>
                        </li>
                        }
                    }
                </ul>
                <!-- End #main-nav -->
                <div id="messages" style="display: none">
                    <!-- Messages are shown when a link with these attributes are clicked: href="#messages" rel="modal"  -->
                    <h3>
                        3 Messages</h3>
                    <p>
                        <strong>17th May 2009</strong> by Admin<br />
                        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in
                        mi at felis aliquet congue. <small><a href="#" class="remove-link" title="Remove message">
                            Remove</a></small>
                    </p>
                    <p>
                        <strong>2nd May 2009</strong> by Jane Doe<br />
                        Ut a est eget ligula molestie gravida. Curabitur massa. Donec eleifend, libero at
                        sagittis mollis, tellus est malesuada tellus, at luctus turpis elit sit amet quam.
                        Vivamus pretium ornare est. <small><a href="#" class="remove-link" title="Remove message">
                            Remove</a></small>
                    </p>
                    <p>
                        <strong>25th April 2009</strong> by Admin<br />
                        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus magna. Cras in
                        mi at felis aliquet congue. <small><a href="#" class="remove-link" title="Remove message">
                            Remove</a></small>
                    </p>
                    <form action="#" method="post">
                    <h4>
                        New Message</h4>
                    <fieldset>
                        <textarea class="textarea" name="textfield" cols="79" rows="5"></textarea>
                    </fieldset>
                    <fieldset>
                        <select name="dropdown" class="small-input">
                            <option value="option1">Send to...</option>
                            <option value="option2">Everyone</option>
                            <option value="option3">Admin</option>
                            <option value="option4">Jane Doe</option>
                        </select>
                        <input class="button" type="submit" value="Send" />
                    </fieldset>
                    </form>
                </div>
                <!-- End #messages -->
            </div>
        </div>
        <!-- End #sidebar -->
</body>
</html>
